import request from '@/utils/request'

// 查询项目组列表
export function listGroup(query) {
  return request({
    url: '/cld/group/list',
    method: 'get',
    params: query
  })
}

// 查询项目组详细
export function getGroup(projectGroupId) {
  return request({
    url: '/cld/group/' + projectGroupId,
    method: 'get'
  })
}

// 新增项目组
export function addGroup(data) {
  return request({
    url: '/cld/group',
    method: 'post',
    data: data
  })
}

// 修改项目组
export function updateGroup(data) {
  return request({
    url: '/cld/group',
    method: 'put',
    data: data
  })
}

// 删除项目组
export function delGroup(projectGroupId) {
  return request({
    url: '/cld/group/' + projectGroupId,
    method: 'delete'
  })
}
